Update error message for missing examples
authorAlex Crichton <alex@alexcrichton.com>
Sat, 21 Mar 2015 02:33:12 +0000 (19:33 -0700)
committerAlex Crichton <alex@alexcrichton.com>
Sat, 21 Mar 2015 02:33:12 +0000 (19:33 -0700)
tests/test_cargo_test.rs

index 1d3df2e89f0e3a62ca119b608780c9ed0a8eda26..d8b5fe28c75e1c305398051d123c1997bb80899e 100644 (file)
@@ -1356,11 +1356,11 @@ test!(bad_example {
 
     assert_that(p.cargo_process("run").arg("--example").arg("foo"),
                 execs().with_status(101).with_stderr("\
-no example target named `foo` to run
+no example target named `foo`
 "));
     assert_that(p.cargo_process("run").arg("--bin").arg("foo"),
                 execs().with_status(101).with_stderr("\
-no bin target named `foo` to run
+no bin target named `foo`
 "));
 });